package com.prik.observer.weather;


import com.prik.observer.weather.observers.CurrentConditionsDisplay;


/**
 * 气象站
 *
 * @author prik
 * @date 2019/7/17
 */
public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();

        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay();
        weatherData.registerObserver(currentConditionsDisplay);



        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(82, 70, 29.2f);
        weatherData.setMeasurements(78, 90, 28.5f);
    }
}
